<template>
	<view>
		<canvas style="width: 520upx;height: 520upx;  margin: 0 auto;" canvas-id="myQrcode" ></canvas>
	</view>
</template>

<script>
	const qrCode = require('@/lib/weapp-qrcode.js');
	export default {
		name:"qrcode",
		data() {
			return {
				
			};
		},
		methods:{
			generatorQrcode(_url){
				new qrCode('myQrcode', {
					text: _url ,
					width: 250,
					height: 250,
					colorDark: "#333333",
					colorLight: "#FFFFFF",
					correctLevel: qrCode.CorrectLevel.L
				});
			}
		}
	}
</script>

<style>

</style>